home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / indeo / nwxmas.exe / XD_GLOB.C < prev    next >
C/C++ Source or Header  |  1993-12-04  |  1KB  |  43 lines

  1. /*
  2. **    ╔══════════════════════════════════════════════════════════════╗
  3. **    ║                                                              ║
  4. **    ║     Copyright (c) 1993 Digital Video Arts, Ltd.              ║
  5. **    ║                    All Rights Reserved                       ║
  6. **    ║                                                              ║
  7. **    ╚══════════════════════════════════════════════════════════════╝
  8. **
  9. **    Christmas card demo
  10. **
  11. **    file: xd_init.c - handle all initialization
  12. */
  13. #include <stdio.h>
  14. #include <fcntl.h>
  15. #include "nw.h"
  16. #include "nwerrno.h"
  17. #include "xmasdemo.h"
  18.  
  19. DisplayDef *d[6], *warp, *map, *mapg, *text, *onscreen, *balls;
  20. AvH *a;                // fire
  21. int channel;            // audio channel
  22. long audiolength;        // length of audio data
  23. //
  24. //    Define the location in the mapfile for the three warps
  25. //
  26. Rect warps[MAXWARPS] = {
  27. {{0, 0}, {128, 128}},
  28. {{0, 128}, {64, 64}},
  29. {{128, 128}, {40, 40}}
  30. };
  31.  
  32. BallStruct Balls[] = {
  33. {NULL, {120, 20}, WARP0, 128, 0, 0},
  34. {NULL, {320, 130}, WARP1, 0, 128, 0},
  35. {NULL, {40, 300}, WARP2, 0, 0, 128},
  36. {NULL, {400, 140}, WARP1, 128, 80, 0},
  37. {NULL, {20,40},WARP2, 0, 0, 0},
  38. {NULL, {180, 320}, WARP1, 80, 0, 128},
  39. {NULL, {380, 266}, WARP0, 224, 40, 40},
  40. {NULL, {80, 240}, WARP2, 40, 220, 120},
  41. };
  42.  
  43.